<?php
session_name("Search");
session_start();
//$content.= '<P>Profile Session ID:'.$_COOKIE['PHPSESSID'].'</P><br />';
$search_array = $_SESSION['search_array'];

$this_page = this_page();

if($this_page != '/search.php'){
	$p_on_profile = false;
}

if(isset($_SESSION['search_array']) && !$p_on_profile){
	session_name("Search");
	//session_unset();
	//session_destroy();
	unset($search_array);
	unset($_SESSION['search_array']);
}

?>